package com.banyuan.ClassRelated;

import org.w3c.dom.ls.LSOutput;

//类的初始化
public class ClassInit {
    private static int i;
    private int j;

    static{
        System.out.println("静态初始化块");
    }

    {
        System.out.println("非静态初始化");
    }

    public ClassInit(){
        System.out.println("无参构造器");
    }

    public void method(){

    }

    public static void main(String[] args) {
        System.out.println(ClassInit.i);
        System.out.println(new ClassInit().j);

    }

    
}
